import requests
from lxml import etree

url = 'https://user.ifeng.com/allsite/login'

headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36'
}

# 模拟一个session对象
session = requests.session()


# 使用session进行模块请求的发送
page_text = session.get(url=url,headers=headers).text

print(page_text)